package com.caotv.wkreport.action;

import java.util.ArrayList;
import java.util.List;

import com.caotv.wkreport.dao.Rooms;
import com.caotv.wkreport.dbutils.RoomsTableTool;

public class DoBookingRoomAction {
	
	private List<Rooms> listRooms = new ArrayList<Rooms>();
	private List<Integer> listHours = new ArrayList<Integer>();
	private List<Integer> listMins = new ArrayList<Integer>();
	
	public String execute(){
		listRooms = RoomsTableTool.getInstance().getAllRooms();
		for (int i = 9; i < 19; i++) {
			listHours.add(i);
		}
		for (int i = 0; i < 60; i += 30) {
			listMins.add(i);
		}
		return "success";
	}
	
	public List<Rooms> getListRooms() {
		return listRooms;
	}

	public void setListRooms(List<Rooms> listRooms) {
		this.listRooms = listRooms;
	}

	public List<Integer> getListHours() {
		return listHours;
	}

	public void setListHours(List<Integer> listHours) {
		this.listHours = listHours;
	}

	public List<Integer> getListMins() {
		return listMins;
	}

	public void setListMins(List<Integer> listMins) {
		this.listMins = listMins;
	}


}
